<?php 
namespace app\admin\model;

use think\Model;

class Oplog extends Model
{

	protected $type = [
        'request'    =>  'serialize',
    ];

	public function user()
	{
	    return $this->belongsTo('\app\user\model\User','user_id','id','','LEFT');
	}

	public function getCreateTimeAttr($value,$data){
		return date('Y-m-d H:i:s',$value);
	}
    
}